package db

import(

)

func (d *TDb) FpyProjectSid(fpyProjectSid string) (db *TDb) {
	FpyProjectSid2, err := pPlugin.Lookup("FpyProjectSid")
	if err != nil {
		panic(err)
	}
	db2 := FpyProjectSid2.(func(any, string)any)(d.Db, fpyProjectSid)

	d.Db = db2
	db = d
	return
}
func (d *TDb) Table(tableName string) (db *TDb) {
	Table2, err := pPlugin.Lookup("Table")
	if err != nil {
		panic(err)
	}
	db2 := Table2.(func(any, string)any)(d.Db, tableName)

	d.Db = db2
	db = d
	return
}
func (d *TDb) Field(field string) (db *TDb) {
	Field2, err := pPlugin.Lookup("Field")
	if err != nil {
		panic(err)
	}
	db2 := Field2.(func(any, string)any)(d.Db, field)

	d.Db = db2
	db = d
	return
}
func (d *TDb) Where(where string, whereArgs []any) (db *TDb) {
	Where2, err := pPlugin.Lookup("Where")
	if err != nil {
		panic(err)
	}
	db2 := Where2.(func(any, string, []any)any)(d.Db, where, whereArgs)

	d.Db = db2
	db = d
	return
}
func (d *TDb) Having(having string, havingArgs []any) (db *TDb) {
	Having2, err := pPlugin.Lookup("Having")
	if err != nil {
		panic(err)
	}
	db2 := Having2.(func(any, string, []any)any)(d.Db, having, havingArgs)

	d.Db = db2
	db = d
	return
}
func (d *TDb) Group(groupFields string) (db *TDb) {
	Group2, err := pPlugin.Lookup("Group")
	if err != nil {
		panic(err)
	}
	db2 := Group2.(func(any, string)any)(d.Db, groupFields)

	d.Db = db2
	db = d
	return
}
func (d *TDb) Page(page int, limit int) (db *TDb) {
	Page2, err := pPlugin.Lookup("Page")
	if err != nil {
		panic(err)
	}
	db2 := Page2.(func(any, int, int)any)(d.Db, page, limit)

	d.Db = db2
	db = d
	return
}
func (d *TDb) Order(order string) (db *TDb) {
	Order2, err := pPlugin.Lookup("Order")
	if err != nil {
		panic(err)
	}
	db2 := Order2.(func(any, string)any)(d.Db, order)

	d.Db = db2
	db = d
	return
}


func SetDbUrl(url string) {
	SeTDbUrl2, err := pPlugin.Lookup("SetDbUrl")
	if err != nil {
		panic(err)
	}
	SeTDbUrl2.(func(string))(url)

	return
}
func SetDbSid(dbSid string) {
	SeTDbSid2, err := pPlugin.Lookup("SetDbSid")
	if err != nil {
		panic(err)
	}
	SeTDbSid2.(func(string))(dbSid)

	return
}